﻿package com.toncen.samepms.system.dao;

import java.util.List;

import com.toncen.samepms.common.AbstractDao;
import com.toncen.samepms.system.domain.Advice;

/**
 * 描述：undefined表SYSTEM_ADVICE的dao文件
 * 
 * @author tch
 */
public class AdviceDao extends AbstractDao<Advice> {

	public AdviceDao() {
	}

	/**
	 * 根据状态获取智能通知
	 * 
	 * @param state
	 * @return
	 * @throws Exception
	 */
	@SuppressWarnings("unchecked")
	public List<Advice> getByState(int state) throws Exception {
		return findList("getByState", state);
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see com.comit.common.db.BaseDao#initialize()
	 */
	@Override
	protected void initialize() {
		setStatementPrefix("Advice");
		setStatementDivision(".");
	}
}
